home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-04 / font_kit.zip / FONT_KIT.DOC < prev    next >
Text File  |  1993-04-16  |  3KB  |  79 lines

  1.  
  2. ┌───────────────────────────────────────────────────────────────┐
  3. │ WESTFORD CUSTOM PC/FX     ·■·   VGA FONT KIT   ·■·    4/15/93 │
  4. │ CIS: 76470,2417 ┌─────────────────────────────────────────────┘
  5. │ 508-692-8163 ┌──┘
  6. └──────────────┘
  7.  
  8. ■ PURPOSE ■
  9. To provide all software necessary (except for PB and the 
  10. assembler) to create directly linkable, custom VGA text mode 
  11. fonts
  12.  
  13. ■ CONTENTS ■
  14. COM2DATA.BAS   |   from: Westford Custom PC/FX
  15. FONT_KIT.DOC   |   this file
  16. FONTCOMS.ZIP   |   selection of usable font files
  17. FONTEDIT.COM   |   from: Michael Medford (PC Magazine utility)
  18. FONTEDIT.DOC
  19. MAKEOBJ.BAS    |   from: Spectra Software
  20.  
  21. ■ TO USE ■
  22. Used together, the utilities contained in VGA FONT KIT make 
  23. possible linkable OBJs that can be included in any program running 
  24. in text mode on a system equipped with a VGA graphics card.  The 
  25. process for creating a new, usable font (contained, for example, 
  26. in NEWFONT.OBJ) involves the following steps.
  27.  
  28.                     CREATE              USE
  29.              ╒═══════════════════╤═════════════════╕
  30.              │ 1.  NEWFONT.COM   │   FONTEDIT.COM  │
  31.              │ 2.  NEWFONT.F16   │   COM2DATA.BAS  │
  32.              │ 3.  NEWFONT.ASM   │   MAKEOBJ.BAS   │
  33.              │ 4.  NEWFONT.OBJ   │   MASM/TASM     │
  34.              ╘═══════════════════╧═════════════════╛
  35.  
  36.  
  37. TO CREATE NEWFONT.COM:
  38. FONTEDIT.COM (the PC Magazine utility) generates a file that 
  39. contains both font byte data as well as executable code.  Once 
  40. the font is designed with FONTEDIT, executing NEWFONT.COM 
  41. provides a fast, simple way to see the font on-screen at the 
  42. command line.  Doing so also facilitates choosing from among 
  43. available fonts.
  44.  
  45. TO CREATE NEWFONT.F16:
  46. COM2DATA extracts from NEWFONT.COM the font byte data, which is 
  47. written to the data file NEWFONT.F16.  COM2DATA will accept a 
  48. command line argument specifying the executable font file 
  49. (com2data newfont.com).  If no argument is provided, the program 
  50. prompts for the name of the executable font file.
  51.  
  52. TO CREATE NEWFONT.ASM:
  53. MAKEOBJ accepts a command line argument (makeobj newfont.f16) or 
  54. prompts for the name of the font data file.  The font data is 
  55. incorporated into NEWFONT.ASM.
  56.  
  57. TO CREATE NEWFONT.OBJ:
  58. Assemble NEWFONT.ASM with MASM or TASM.
  59.  
  60. TO USE NEWFONT.OBJ:
  61. Use the following metastatements.
  62.     $LINK NEWFONT.OBJ
  63.     DECLARE SUB NEWFONT ()
  64. Then call the font.
  65.     call newfont()
  66.  
  67.  
  68. ■ RESTORING DEFAULT ■
  69. When ending and cleaning up after a program that has used a 
  70. custom font, a simple, code-efficient method for resetting the 
  71. default VGA 8X16 fonts is to use the following code.
  72.  
  73. ASM MOV AX, &H1104      ;ah=character generator, al=8x16 w/reset
  74. ASM XOR BL,BL           ;bl=mem block destination (0)
  75. ASM INT &H10
  76.  
  77.  
  78. ── end font_kit.doc──
  79.